package com.liangsui.mss.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.liangsui.mss.domain.Patient;
import com.liangsui.mss.domain.PatientFile;
import com.liangsui.mss.dto.PatientDto;
import com.liangsui.mss.dto.PatientFileDto;
import com.liangsui.mss.vo.DataGridView;

/**
* @author zhang
* @description 针对表【his_patient(患者信息表)】的数据库操作Service
* @createDate 2022-12-06 22:36:39
*/
public interface PatientService extends IService<Patient> {

    DataGridView listPatientForPage(PatientDto patientDto);

    Patient getPatientById(String patientId);

    PatientFile getPatientFileById(String patientId);

    Patient addPatient(PatientDto patientDto);

    Patient getPatientByIdCard(String idCard);

    Patient getPatientByUsername(String username, String password);

    Patient updatePatientInfoByPhone(PatientDto patientDto);

    int updatePassword(String username, String password);

    Patient getPatientByPhone(String phone);

    void addPatientFile(PatientFileDto patientFileDto);

    void updatePatientFile(PatientFileDto patientFileDto);
}
